package by.admonko.universaltesting.services;

import java.util.List;

import org.springframework.transaction.annotation.Transactional;

import by.admonko.universaltesting.datamodel.Answer;
import by.admonko.universaltesting.datamodel.Question;

public interface AnswerService {

	@Transactional
	Answer getAnswer(Integer id);

	@Transactional
	void setAnswer(Answer answer);

	@Transactional
	void removeAnswer(Integer id);

	@Transactional
	void removeAnsByList(List<Integer> list);

	@Transactional
	void updateAnswer(Answer answer);

	@Transactional
	List<Answer> getByQuestion(Question quest);
}
